Timm Bäder [Sat, 6 Jun 2020 10:09:10 +0000 (12:09 +0200)]
widget: Avoid doing GtkSnapshot work just to append one node
We already know that a widget will have literally 1 node, not more.
Avoid doing the GtkSnapshot state stack dance and just append a new
transform node instead.
Seems to give me around 400 more icons in the fishbowl
Timm Bäder [Sat, 6 Jun 2020 07:05:49 +0000 (09:05 +0200)]
gsktransform: Make next == NULL case explicit
This is handled with the is_identity() check as well but this way it's
much more obvious what's happening
Timm Bäder [Sat, 6 Jun 2020 06:31:35 +0000 (08:31 +0200)]
fishbowl: Remove visibility handling
First, almost all widgets are either visible and mapped, or visible and
unmapped because they are !child_visible. In both cases, we do care
about the size. If they are indeed invisible, gtk_widget_measure() will
take care of that by returning all 0.
And gtk_widget_unparent() already queues a resize on the parent if
necessary, so that is unneeded as well.
Timm Bäder [Sat, 6 Jun 2020 06:13:00 +0000 (08:13 +0200)]
Fix print dialog node name
Matthias Clasen [Fri, 19 Jun 2020 00:09:03 +0000 (00:09 +0000)]
Merge branch 'better-naming' into 'master'
Stop using loaded terms
See merge request GNOME/gtk!2109
Matthias Clasen [Thu, 18 Jun 2020 21:43:59 +0000 (21:43 +0000)]
Merge branch 'quartz-openfile-fix' into 'master'
quartz: gtk-application - inhibit openFiles events from cmdline
See merge request GNOME/gtk!2112
Friedrich Beckmann [Thu, 18 Jun 2020 19:08:28 +0000 (21:08 +0200)]
quartz: gtk-application - inhibit openFiles events from cmdline
When an application is started via cmdline, then openFiles events
from MacOS are generated although gtkapplication already interprets
the cmdline arguments and opens suitable arguments as files. So they
would be opened twice. Depending on the exact situation the
openFiles event can also be issued before the startup signal
is given. Depending on the application this can result in a crash
due to unexpected behaviour. I took this idea from the
gedit-app-osx.m file. Also from Jesse van den Kieboom.
See:
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2098#note_842975
https://gitlab.gnome.org/GNOME/gtk/-/commit/
a3ad7fa80f764fb7bcbe
https://gitlab.gnome.org/GNOME/gedit/-/blob/master/gedit/gedit-app-osx.m#L592
Emmanuele Bassi [Thu, 18 Jun 2020 18:22:20 +0000 (19:22 +0100)]
Rename master and slave device
We already use the "logical/virtual" and "physical" names in the
documentation, there's no reason to use loaded terms just because X11
uses them.
Emmanuele Bassi [Thu, 18 Jun 2020 16:43:46 +0000 (17:43 +0100)]
Use the appropriate name for Juneteenth
Juneteenth (a portmanteau of June and nineteenth)[2] (also known as
Freedom Day,[3] Jubilee Day,[4] and Liberation Day,[5]) is an unofficial
American holiday celebrated annually on the 19th of June in the United
States.
-- https://en.wikipedia.org/wiki/Juneteenth
Emmanuele Bassi [Thu, 18 Jun 2020 16:36:44 +0000 (17:36 +0100)]
Clarify document
We don't use the branch name to determine whether we should enable or
disable deprecation warnings coming from our dependencies.
Emmanuele Bassi [Thu, 18 Jun 2020 16:33:30 +0000 (17:33 +0100)]
Rename internal object for the Quartz input method context
Like GtkIMMultiContext, the Quartz input method object uses a delegate
object internally. Let's not use loaded terms like "slave".
Emmanuele Bassi [Thu, 18 Jun 2020 16:32:05 +0000 (17:32 +0100)]
Rename delegate input method context
The GtkIMMultiContext uses a delegate pattern to proxy an existing input
method context. Let's not use loaded terms like "slave" when we have
perfectly fungible terms like "delegate".
Emmanuele Bassi [Thu, 18 Jun 2020 16:31:48 +0000 (17:31 +0100)]
Rename (unused) argument
Emmanuele Bassi [Thu, 18 Jun 2020 16:21:09 +0000 (17:21 +0100)]
docs: Clean up the GtkBuilder description
Drop the reference to a long since removed RNC schema file and to
GtkUIManager; clean up the typography for code elements.
Emmanuele Bassi [Thu, 18 Jun 2020 16:20:56 +0000 (17:20 +0100)]
Fix typo in a comment
Emmanuele Bassi [Thu, 18 Jun 2020 15:58:43 +0000 (16:58 +0100)]
cups: Use allow/ignore list
Don't use loaded terms like "whitelist" and "blacklist".
Emmanuele Bassi [Thu, 18 Jun 2020 15:57:27 +0000 (16:57 +0100)]
Update a comment
Drop the use of "blacklist" from the comment, since everything else
refers to "ignored" properties.
Yuri Chornoivan [Thu, 18 Jun 2020 15:29:05 +0000 (15:29 +0000)]
Update Ukrainian translation
Matthias Clasen [Thu, 18 Jun 2020 15:22:53 +0000 (15:22 +0000)]
Merge branch 'typo_fix' into 'master'
Fix minor typos
See merge request GNOME/gtk!2108
Yuri Chornoivan [Thu, 18 Jun 2020 07:47:16 +0000 (10:47 +0300)]
Fix minor typos
Matthias Clasen [Thu, 18 Jun 2020 03:21:18 +0000 (03:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2107
Matthias Clasen [Tue, 16 Jun 2020 20:22:19 +0000 (16:22 -0400)]
gtk-demo: Fix the settings demo
This was not updated to the latest api of GtkEditableLabel.
Matthias Clasen [Wed, 17 Jun 2020 22:08:17 +0000 (18:08 -0400)]
gtk-demo: Cosmetic changes
Reword the titles and texts for several demos.
Matthias Clasen [Wed, 17 Jun 2020 22:06:28 +0000 (18:06 -0400)]
gtk-demo: Cosmetic changes to the tagged entry demo
Matthias Clasen [Wed, 17 Jun 2020 21:53:40 +0000 (17:53 -0400)]
gtk-demo: Fix the tagged entry demo
We were using gtk_box_append on a button. Fallout
from the container removal.
Matthias Clasen [Wed, 17 Jun 2020 21:46:40 +0000 (17:46 -0400)]
gtk4-demo: Cosmetic fixes to the dialog demo
Make this look a bit less ancient.
Matthias Clasen [Wed, 17 Jun 2020 21:16:17 +0000 (21:16 +0000)]
Merge branch 'matthiasc/cloudprovider-ci' into 'master'
Matthiasc/cloudprovider ci
See merge request GNOME/gtk!2106
Matthias Clasen [Wed, 17 Jun 2020 20:19:55 +0000 (16:19 -0400)]
Fix another cloudprovider include
Matthias Clasen [Wed, 17 Jun 2020 17:48:40 +0000 (13:48 -0400)]
gtk-demo: Add a missing source file
Emmanuele Bassi [Wed, 17 Jun 2020 19:49:57 +0000 (20:49 +0100)]
Use the appropriate include for libcloudproviders
Libcloudproviders has a single header entry point, so we shouldn't
include a sub-header.
Additionally, the include path provided by the pkg-config file is:
-I${includedir}/cloudproviders
So the include directive should be:
#include <cloudproviders.h>
The fact that it worked until now was an accident caused by the blanket:
-I${includedir}
we get for free; it broke the build when using libcloudproviders as a
subproject.
Emmanuele Bassi [Mon, 8 Jun 2020 10:37:29 +0000 (11:37 +0100)]
ci: Enable libcloudproviders support
We ended up breaking the build when it's enabled, so we should test the
feature in our CI pipeline.
Emmanuele Bassi [Tue, 9 Jun 2020 14:46:32 +0000 (15:46 +0100)]
Add libcloudproviders as a fallback subproject
We require a new version of libcloudproviders so that we can enable it
in our CI pipeline.
Matthias Clasen [Wed, 17 Jun 2020 17:37:12 +0000 (17:37 +0000)]
Merge branch 'fix-initial-demo-selection' into 'master'
gtk-demo: Select the initial demo properly
See merge request GNOME/gtk!2105
Emmanuele Bassi [Wed, 17 Jun 2020 16:54:06 +0000 (16:54 +0000)]
Merge branch 'no-more-testdbus' into 'master'
Stop using GTestDBus
See merge request GNOME/gtk!2104
Matthias Clasen [Wed, 17 Jun 2020 16:25:28 +0000 (12:25 -0400)]
gtk-demo: Select the initial demo properly
GtkSingleSelection does not give us a notification when
autoselect kicks in to select the first item. This was
barely noticeable, since the notebook ends up correctly
populated anyway, but the window title is not.
Matthias Clasen [Wed, 17 Jun 2020 16:05:07 +0000 (12:05 -0400)]
Stop using GTestDBus
It is causing tests to timeout when libraries we are using
leak bus connections, and it turns out our tests run fine
without a session bus.
Florentina Mușat [Wed, 17 Jun 2020 15:38:14 +0000 (15:38 +0000)]
Update Romanian translation
Florentina Mușat [Wed, 17 Jun 2020 15:31:22 +0000 (15:31 +0000)]
Update Romanian translation
Matthias Clasen [Wed, 17 Jun 2020 15:06:44 +0000 (15:06 +0000)]
Merge branch 'ebassi/ci-cleanup-master' into 'master'
Small clean ups for the CI file
See merge request GNOME/gtk!2102
Emmanuele Bassi [Mon, 8 Jun 2020 10:35:49 +0000 (11:35 +0100)]
ci: Move backend Meson flags into a variable
So we don't have to copy them around.
Emmanuele Bassi [Mon, 8 Jun 2020 10:00:20 +0000 (11:00 +0100)]
ci: Move images into environment variables
Currently we have to hunt all the `image` keys when updating the image
in use for a job. We should centralise them all at the top of the file,
so they are easy to update in one simple change.
Daniel Mustieles [Wed, 17 Jun 2020 11:54:04 +0000 (13:54 +0200)]
Updated Spanish translation
Yuri Chornoivan [Wed, 17 Jun 2020 08:28:31 +0000 (08:28 +0000)]
Update Ukrainian translation
Matthias Clasen [Tue, 16 Jun 2020 20:00:13 +0000 (20:00 +0000)]
Merge branch 'page-setup-combos' into 'master'
Page setup combos
See merge request GNOME/gtk!2100
Matthias Clasen [Tue, 16 Jun 2020 19:52:51 +0000 (19:52 +0000)]
Merge branch 'wip/jimmac/dropdown-styling' into 'master'
Adwaita: dropdown styling
Closes #2846
See merge request GNOME/gtk!2101
Jakub Steiner [Mon, 15 Jun 2020 13:18:04 +0000 (15:18 +0200)]
Adwaita: dropdown styling
- selected item color
- offset dropdown form the parent control
- special styling for the top search entry
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2846
Matthias Clasen [Tue, 16 Jun 2020 01:57:39 +0000 (21:57 -0400)]
pagesetupdialog: Convert the printer combo
Turn the printer combo into a dropdown.
Matthias Clasen [Tue, 16 Jun 2020 00:31:27 +0000 (20:31 -0400)]
pagesetupdialog: Port the papersize combo
Turn the papersize combo into a dropdown.
Matthias Clasen [Tue, 16 Jun 2020 16:06:34 +0000 (12:06 -0400)]
Drop unused includes
This is just cleanup to help tracking down
remaining GtkComboBox uses.
Friedrich Beckmann [Tue, 16 Jun 2020 14:59:06 +0000 (16:59 +0200)]
quartz: added open capability to gtk_application
This patch implements the openFiles delegate which is required
to open files which are associated with an application via the
Finder or via open on the command line. The patch has been
proposed by jessevdk@gmail.com.
See: https://gitlab.gnome.org/GNOME/gtk/-/issues/463
I tested the patch with the GNU pspp application on MacOS with
the quartz backend.
Piotr Drąg [Tue, 16 Jun 2020 16:16:43 +0000 (18:16 +0200)]
Update POTFILES.in
Emmanuele Bassi [Tue, 16 Jun 2020 15:05:25 +0000 (15:05 +0000)]
Merge branch 'wip/ricotz/cleanup' into 'master'
gdk: Drop gdk_device_get_axis_value leftovers
See merge request GNOME/gtk!2097
Benjamin Otte [Tue, 16 Jun 2020 13:57:49 +0000 (13:57 +0000)]
Merge branch 'cherry-pick-
947c3e9f' into 'master'
Merge branch 'benzea/fix-css-update' into 'gtk-3-24'
See merge request GNOME/gtk!2096
Rico Tzschichholz [Tue, 16 Jun 2020 13:31:29 +0000 (15:31 +0200)]
gdk: Drop gdk_device_get_axis_value leftovers
Benjamin Otte [Mon, 15 Jun 2020 20:13:56 +0000 (20:13 +0000)]
Merge branch 'benzea/fix-css-update' into 'gtk-3-24'
Fix CSS update loop
See merge request GNOME/gtk!2093
(cherry picked from commit
947c3e9f723ef733ab46e4dce34fa41b91cb0604)
7a5caf1b cssnode: Don't queue_validate/deque_validate invisible nodes
Daniel Mustieles [Tue, 16 Jun 2020 07:47:37 +0000 (09:47 +0200)]
Updated Spanish translation
Daniel Mustieles [Tue, 16 Jun 2020 07:46:49 +0000 (09:46 +0200)]
Updated Spanish translation
Matthias Clasen [Tue, 16 Jun 2020 05:02:44 +0000 (05:02 +0000)]
Merge branch 'printer-combo-conversion' into 'master'
Printer combo conversion
See merge request GNOME/gtk!2095
Matthias Clasen [Mon, 15 Jun 2020 22:15:58 +0000 (18:15 -0400)]
fontchooser: Drop unused includes
Matthias Clasen [Mon, 15 Jun 2020 22:14:06 +0000 (18:14 -0400)]
text: Drop unused includes
Matthias Clasen [Mon, 15 Jun 2020 21:54:49 +0000 (17:54 -0400)]
printdialog: Convert some leftover code
There was still some code expecting to deal with tree
models. Convert it to work with list models.
Matthias Clasen [Mon, 15 Jun 2020 20:33:11 +0000 (16:33 -0400)]
pagesetupdialog: Drop the Private struct
We don't need it here.
Matthias Clasen [Sun, 14 Jun 2020 12:30:54 +0000 (08:30 -0400)]
paperdialog: Convert the printer combo
Use a GtkDropDown for the printer combo.
Matthias Clasen [Mon, 15 Jun 2020 20:42:53 +0000 (20:42 +0000)]
Merge branch 'fix-notebook-tabs' into 'master'
Fix notebook tabs
Closes #2842 and #2841
See merge request GNOME/gtk!2092
Matthias Clasen [Mon, 15 Jun 2020 18:16:45 +0000 (14:16 -0400)]
notebook: Don't capture clicks
Using the bubble works just fine here, and keeps buttons
in notebook tabs working without side-effects.
Fixes: #2841
Matthias Clasen [Mon, 15 Jun 2020 17:49:17 +0000 (17:49 +0000)]
Merge branch 'michaelweghorn/master_issue1820_gtkfilechoosernativeportal_get_filter' into 'master'
Make gtk_file_chooser_get_filter work for portal case (issue #1820, master)
Closes #1820
See merge request GNOME/gtk!2070
Matthias Clasen [Mon, 15 Jun 2020 17:45:57 +0000 (13:45 -0400)]
searchentry: Fix keynav
Shift-Tabbing was getting stuck in GtkSearchEntry and
GtkPasswordEntry, since they grab the focus to a child
of theirs. Copy the same fix that we are already using
in GtkEntry.
Fixes: #2842
Matthias Clasen [Mon, 15 Jun 2020 17:45:28 +0000 (13:45 -0400)]
docs: Cosmetics
Remove a few instances of GTK+ in the docs.
Matthias Clasen [Mon, 15 Jun 2020 17:01:25 +0000 (17:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
button: Center images
See merge request GNOME/gtk!2090
Matthias Clasen [Mon, 15 Jun 2020 16:47:57 +0000 (16:47 +0000)]
Merge branch 'editable-label' into 'master'
Editable label
See merge request GNOME/gtk!2081
Matthias Clasen [Mon, 15 Jun 2020 16:23:32 +0000 (12:23 -0400)]
button: Center images
If we leave the valign to be the default fill, then
the images pick up baseline alignment from the environment,
which can occasionally lead to misplaced -/+ icons in
spinbuttons, for example in the "Page Setup" tab of
the print dialog.
Matthias Clasen [Fri, 12 Jun 2020 18:11:16 +0000 (14:11 -0400)]
paperdialog: Port to use GtkListView
Use GtkListView and GtkEditableLabel here.
Matthias Clasen [Fri, 12 Jun 2020 15:07:37 +0000 (11:07 -0400)]
gtk-demo: Use editable labels in the settings demo
This is more in line with the expected behavior for
editable lists.
Matthias Clasen [Fri, 12 Jun 2020 15:07:07 +0000 (11:07 -0400)]
Add a GtkEditableLabel widget
Matthias Clasen [Mon, 15 Jun 2020 16:01:22 +0000 (16:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
inspector: Don't set style classes on app widgets
See merge request GNOME/gtk!2089
Matthias Clasen [Mon, 15 Jun 2020 15:21:20 +0000 (11:21 -0400)]
inspector: Don't set style classes on app widgets
Due to a mixup, the inspector was setting .dim-label on
widgets that get unmapped, instead of the labels representing
them in the object tree.
Matthias Clasen [Mon, 15 Jun 2020 15:05:14 +0000 (15:05 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
dropdown: Style fixups
See merge request GNOME/gtk!2088
Matthias Clasen [Mon, 15 Jun 2020 14:23:39 +0000 (10:23 -0400)]
dropdown: Style fixups
Make the dropdown popover have a .menu style class,
and add padding to the rows in the popover. Also,
make the popover left-aligned with the button.
Alexander Larsson [Mon, 15 Jun 2020 10:27:02 +0000 (10:27 +0000)]
Merge branch 'final-frame-clock-work' into 'master'
Final frame clock work
See merge request GNOME/gtk!2087
Yariv Barkan [Wed, 10 Jun 2020 07:54:07 +0000 (10:54 +0300)]
frame clock: fix scheduling
Fix scheduling of the frame clock when we don't receive "frame drawn"
messages from the compositor.
If we received "frame drawn" events recently, then the "smooth frame
time" would be in sync with the vsync time. When we don't receive frame
drawn events, the "smooth frame time" is simply incremented by constant
multiples of the refresh interval. In both cases we can use this smooth
time as the basis for scheduling the next clock cycle.
By only using the "smooth frame time" as a basis we also benefit from
more consistent scheduling cadence. If, for example, we got "frame
drawn" events, then didn't receive them for a few frames, we would still
be in sync when we start receiving these events again.
Yariv Barkan [Wed, 10 Jun 2020 07:45:14 +0000 (10:45 +0300)]
frame clock: adjust reported frame time
When an animation is started while the application is idle, that often
happens as a result of some external event. This can be an input event,
an expired timer, data arriving over the network etc. The result is that
the first animation clock cycle could be scheduled at some random time,
as opposed to follow up cycles which are usually scheduled right after a
vsync.
Since the frame time we report to the application is correlated to the
time when the frame clock was scheduled to run, this can result in
uneven times reported in the first few animation frames. In order to fix
that, we measure the phase of the first clock cycle - i.e. the offset
between the first cycle and the preceding vsync. Once we start receiving
"frame drawn" signals, the cadence of the frame clock scheduling becomes
tied to the vsync. In order to maintain the regularity of the reported
frame times, we adjust subsequent reported frame times with the
aforementioned phase.
Yuri Chornoivan [Mon, 15 Jun 2020 06:33:54 +0000 (06:33 +0000)]
Update Ukrainian translation
Matthias Clasen [Mon, 15 Jun 2020 01:26:45 +0000 (01:26 +0000)]
Merge branch 'mingw-x64-compiler-warnings' into 'master'
Fix various compiler warnings with the 64bit mingw build
See merge request GNOME/gtk!2020
Matthias Clasen [Sun, 14 Jun 2020 22:06:16 +0000 (22:06 +0000)]
Merge branch 'fix-spin-button-auto-sizing' into 'master'
spinbutton: Bring back auto-sizing
See merge request GNOME/gtk!2085
Christoph Reiter [Sun, 14 Jun 2020 18:02:46 +0000 (20:02 +0200)]
CI: Switch to 64bit mingw for the MSYS2 job
64 bit is more common now and also tests more things because
sizeof(glong) != sizeof(gpointer)
Christoph Reiter [Tue, 2 Jun 2020 18:41:38 +0000 (20:41 +0200)]
Fix various compiler warnings with the 64bit mingw build
Use better matching format modifiers/specifiers, initialise some things
which in theory wont be written to because of getters using g_return_if_fail(),
a cast, and gsize as input for malloc because gsize!=glong on 64bit Windows.
Matthias Clasen [Sun, 14 Jun 2020 14:57:42 +0000 (14:57 +0000)]
Merge branch 'tchaik/fix-lpr-build' into 'master'
Fix the lpr print backend build (redundant-decls)
See merge request GNOME/gtk!2084
Matthias Clasen [Sun, 14 Jun 2020 13:12:49 +0000 (09:12 -0400)]
spinbutton: Bring back auto-sizing
We lost this when GtkSpinButton was first ported
to the new editable regime, and then the GtkBoxLayout.
Bring it back, but without text measurement, by overriding
width-chars for the GtkText inside, and only do it if
GtkSpinButton::width-chars is unset (ie -1).
Also adjust the documentation slightly to point out
how auto-sizing can be turned off.
Martin Blanchard [Sun, 14 Jun 2020 14:13:37 +0000 (16:13 +0200)]
Fix the lpr print backend build (redundant-decls)
Class and instance _init() functions are already declared by
G_DEFINE_DYNAMIC_TYPE ().
Asier Sarasua Garmendia [Sat, 13 Jun 2020 20:19:00 +0000 (20:19 +0000)]
Update Basque translation
Asier Sarasua Garmendia [Sat, 13 Jun 2020 19:40:17 +0000 (19:40 +0000)]
Update Basque translation
Matthias Clasen [Sat, 13 Jun 2020 16:17:49 +0000 (16:17 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
widget-factory: Make the print dialog more functional
See merge request GNOME/gtk!2083
Matthias Clasen [Sat, 13 Jun 2020 12:59:21 +0000 (08:59 -0400)]
widget-factory: Make the print dialog more functional
Allow opening the papersize dialog.
Yuri Chornoivan [Sat, 13 Jun 2020 11:45:35 +0000 (11:45 +0000)]
Update Ukrainian translation
Piotr Drąg [Sat, 13 Jun 2020 10:48:27 +0000 (12:48 +0200)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Fri, 12 Jun 2020 21:53:48 +0000 (21:53 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
paperdialog: Drop the private struct
See merge request GNOME/gtk!2082
Matthias Clasen [Fri, 12 Jun 2020 16:52:47 +0000 (12:52 -0400)]
paperdialog: Drop the private struct
Not needed here.
Matthias Clasen [Fri, 12 Jun 2020 16:39:46 +0000 (16:39 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!2080
Matthias Clasen [Fri, 12 Jun 2020 14:01:17 +0000 (14:01 +0000)]
Merge branch 'fix-custom-paper-dialog' into 'master'
Fix the custom paper dialog
See merge request GNOME/gtk!2078
Matthias Clasen [Fri, 12 Jun 2020 12:28:59 +0000 (08:28 -0400)]
printdialog: Replace the papersize combo with a dropdown
This one is more complicated, since it involves
separators and a custom item.